﻿using System.ComponentModel.DataAnnotations;

namespace ExamPlat.Models
{
    /// <summary>
    /// 用户信息
    /// </summary>
    public class UserInfo
    {
        //主键
        public int ID { get; set; }
        //登录帐号
        [Required(ErrorMessage ="登录帐号不能为空")]
       [Display(Name ="登录帐号")]
        public string LoginAccount { get; set; }
        //登录密码
        [Required(ErrorMessage = "登录密码不能为空")]
        [Display(Name = "登录密码")]
        public string LoginPwd { get; set; }
        //用户姓名
        [Required(ErrorMessage = "用户姓名不能为空")]
        [Display(Name = "用户姓名")]
        public string UserName { get; set; }
        //用户角色
        [Display(Name = "用户角色")]
        public int RoleID { get; set; }
    }
}